//文件上传服务层
app.service("uploadService",function($http){
	this.uploadFile=function(){
		var formData=new FormData();
	    formData.append("file",file.files[0]);   
		return $http({
            url:'../upload.do',
            method:'post',
            data: formData, //formData代表要上传的文件,
            headers: {'Content-Type':undefined},
            transformRequest: angular.identity
        });		
	}	
});
